package aiku.numericalcontroloa.Controller.ClientsController;

import aiku.numericalcontroloa.Base.Utils.Result;
import aiku.numericalcontroloa.Model.Entity.Chat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 马文杰
 * @version 1.0
 */
@RestController
@RequestMapping("/chat")
public class ChatController {
    @Autowired
    private aiku.numericalcontroloa.Service.Impl.ClientsServiceImpl clientsService;
    /**
     * 继续添加客户交谈记录
     * @description: TODO
     * @auther: 马文杰
     * @date: 2021/1/26 9:49
     */
    @PostMapping("/insertChat")
    public Result insertChat(Chat chat){
        Result ret =  clientsService.insertChat(chat);
        return ret;
    }
}
